import type { IProgramStatus } from "@/lib/types";

/**
 * 用段号和步号来标识唯一性
 */
export default function getKey<
  T extends Pick<IProgramStatus, "segmentNo" | "stepNo">,
>(item: T) {
  return `${item.segmentNo}-${item.stepNo}`;
}
